﻿// 入口文件


//导入Vue
import Vue from 'vue'
//导入路由包
import VueRouter from 'vue-router'
// 安装路由
Vue.use(VueRouter)

//2.1导入vue-resource
import VueResource from 'vue-resource'
//安装vue-resource
Vue.use(VueResource)


//导入mui的样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'


//导入App根组件
import app from './App.vue'

// 按需导入mint-ui组件
import  {Header,Swipe,SwipeItem} from 'mint-ui'
//注册为全局组件
Vue.component(Header.name,Header);
Vue.component(Swipe.name,Swipe);
Vue.component(SwipeItem.name,SwipeItem);




//导入自己的router.js路由模块
import router from './router.js'



//vue实例
var vm = new Vue({
	el:'#app',
	render:c=>c(app),
	router // 挂在路由到vm实例上
})